CC=g++
TARGET = FLAlgorithm
OFILES = FLAlgorithm.o

CFLAGS = -I/home/pi/csr-repository/include
LDFLAGS = -g -lperipherals -lfind_robots -lraspicamcv -lwiringPi -lcolor_thresholding -lopencv_highgui -lopencv_core -lopencv_legacy -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_imgproc -L/opt/vc/userland/build/lib -lmmal_core -lmmal -l mmal_util -lvcos -lbcm_host

all: $(TARGET)

FLAlgorithm.o: FLAlgorithm.cpp
	gcc -c FLAlgorithm.cpp $(CFLAGS)

$(TARGET): $(OFILES)
	gcc -o $(TARGET) $(LDFLAGS) $(OFILES) $(CFLAGS)

clean:	
	rm -f *.o
